<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    // let arr = ['1', '2', '3', '4']
    // let [one, , , four] = arr
    // console.log(one, four);
    // const obj = {
    //   one: '1',
    //   two: '2',
    //   three: '3'
    // }
    // const { one: a, two: b, three: c } = obj
    // console.log(a, b, c);
    // const obj = {
    //   one: {
    //     two: {
    //       three: {
    //         four: '你好呀朋友'
    //       }
    //     }
    //   }
    // }
    // const { one: { two: { three: { four: value } } } } = obj
    // console.log(value);
    // const arr = ['前端', '后端', '软件']
    // arr.forEach(([item]) => console.log(item))
    let map = new Map()
    map.set('name1', '蛋老师')
    map.set('name2', '罗老师')
    map.set('name3', '王老师')
    for (let [name, value] of map) {
      console.log(name,value);
    }
  </script>
</body>

</html>